﻿<!DOCTYPE html>
<html ng-app ng-controller="AppCtrl">
    <head>
        <title>{{appTitle}}</title>

        <link rel="stylesheet" href="css/lib/bootstrap.min.css">
        <link rel="stylesheet" href="css/lib/bootstrap-responsive.min.css">
        <link rel="stylesheet" href="css/custom.css">
    </head>

    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#">{{appTitle}}</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li class="active"><a href="#">Home</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="container" ng-controller="TodoCtrl">
            <h3>{{todos.length}} todos</h3>

            <ul class="todo-list">
                <li ng-repeat="todo in todos">
                    <label class="checkbox">
                        <input type="checkbox" ng-model="todo.done"/>
                        <span class="todo-done-{{todo.done}}">{{todo.title}}</span>
                    </label>
                </li>
            </ul>
            
            <div class="input-append">
                <input type="text" placeholder="new item" ng-model="todoItemToAdd" />
                <div class="btn add-on" ng-click="addTodoItem()">
                    <i class="icon-plus"></i> Add
                </div>
            </div>
            <br />
            <button class="btn" ng-click="clearCompletedTodos()">
                <i class="icon-trash"></i> Clear all completed
            </button>
        </div>
        
        <script type="text/javascript" src="js/lib/jquery-1.9.1.min.js"> </script>
        <script type="text/javascript" src="js/lib/bootstrap.min.js"> </script>
        <script type="text/javascript" src="js/lib/angular.min.js"> </script>

        <script type="text/javascript" src="js/custom.js"> </script>
    </body>
</html>